/*
============================================================================
 Name        : BaseCommon.h
 Author      : \x{738b}\x{658c}
 Version     :
 Copyright   : \x{76ca}\x{76df}\x{8f6f}\x{4ef6}
 Description : CBaseCommon declaration
============================================================================
*/

#ifndef BASECOMMON_H
#define BASECOMMON_H

// INCLUDES
#include <e32std.h>
#include <e32base.h>

// FORWARD DECLARATIONS
class CFbsBitmap;
class CPeriodic;
class CThreadSocket;
class CStockTextInput;
class CKeyBoard;
class CToolbar;
class CTabbar;
class CTitlebar;
// CLASS DECLARATION

const TInt KImageBarNumbers = 9;
const TInt KImgcrollBarNumbers = 5;

//#ifdef __SERIES60_3X__
//_LIT(KLogoImg,"\\resource\\apps\\eStock_L2_aif.mif");
//#else
//_LIT (KLogoImg,"\\system\\apps\\eStock\\eStock.mbm");
//#endif

/**
*  CBaseCommon
* 
*/

class CBaseCommon : public CBase
{
public:
	~CBaseCommon();

	static CBaseCommon* NewL();

	static CBaseCommon* NewLC();
	
	static CBaseCommon* Static();
	
public:
	

private:
	CBaseCommon();

	void ConstructL();

//#ifdef __SERIES60_3X__
//	void SetLogoSize();
//#endif

public:
	TInt m_nCountSocket;
	TInt m_nSecondCount;
	//TBuf8<6> m_pbInput;
	//TInt8 m_bStation;
	//TBool m_bNumber;
	//TInt m_nLastInput;
	//CStockTextInput* m_stockInput;
	TBuf8<KMaxFileName> m_strURL;
	//CThreadSocket* m_threadSocket;
	//CThreadSocket* m_threadSocketInfo;
	TInt m_nScreenWidth;
	TInt m_nScreenHeight;
	TInt m_nLineHeight;
	TInt m_nLinesPerPage;
	//TBool m_bAddZXG;

	TInt m_nOnlineDays;//\x{767b}\x{9646}\x{5929}\x{6570}
	
	CKeyBoard* m_kb;
	TBool m_bShowKB;

	//CFbsBitmap* m_aImgBars[KImageBarNumbers];
	//CFbsBitmap* m_aImgScrollBar[KImgcrollBarNumbers];
	//CImageTool* m_imgTool;
	//TInt m_nImgIndex;

	CToolbar* iToolbar;
	CTabbar* iTabbar;
	CTitlebar* iTitlebar;

	CFbsBitmap* iUparrowBitmap;
	CFbsBitmap* iUparrowBitmapmask;
	CFbsBitmap* iDownarrowBitmap;
	CFbsBitmap* iDownarrowBitmapmask;
	CFbsBitmap* iLeftarrowBitmap;
	CFbsBitmap* iLeftarrowBitmapmask;
	CFbsBitmap* iRightarrowBitmap;
	CFbsBitmap* iRightarrowBitmapmask;
};

#endif // BASECOMMON_H
